﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditCategoryCtrl.ascx.cs" Inherits="WebUI.Controls.EditCategoryCtrl" %>

<script type="text/javascript">
    function chkVisibile_OnClick(chk) {
        if (!confirm("This change will also affect all sub-categories and related products. Do you want to continue?"))
            chk.checked = !chk.checked;
    }
</script>
<asp:Panel ID="mainPanel" runat="server" CssClass="primaryFrameNoBorder">
   <table>
        <tr>
            <td style="text-align:right">
                <asp:Label CssClass="labelMessage" ID="lblname" runat="server" Text="Name:"></asp:Label>
            </td>
            <td style="text-align:left">
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="require1" runat="server" ControlToValidate="txtName" Display="Dynamic" CssClass="requiredField"
                    ErrorMessage="required" Text="required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align:right">
                <asp:Label CssClass="labelMessage" ID="lblShowOnWeb" runat="server" Text="Show on web:"></asp:Label>
            </td>
            <td style="text-align:left">
                <asp:CheckBox ID="chkVisible" onclick="chkVisibile_OnClick(this);" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="text-align:right">
                <asp:Label CssClass="labelMessage" ID="lblDealerOnly" runat="server" Text="Dealer Only:"></asp:Label>
            </td>
            <td style="text-align:left">
                <asp:CheckBox ID="chkDealerOnly" onclick="chkVisibile_OnClick(this);" runat="server" />
            </td>
        </tr>
   </table>
</asp:Panel>